//
//  ShouCangViewCell.m
//  LoverGo
//
//  Created by liudonghuan on 14-9-11.
//  Copyright (c) 2014年 yexiao. All rights reserved.
//

#import "ShouCangViewCell.h"

@implementation ShouCangViewCell
@synthesize scHeadImg = _scHeadImg;
@synthesize scAddressLab = _scAddressLab;
@synthesize scPriceLab = _scPriceLab;
@synthesize scTitleLab = _scTitleLab;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        _scHeadImg = [[EMAsyncImageView alloc]initWithFrame:CGRectMake(5, 5, 120, 90)];
        _scTitleLab = [[UILabel alloc]initWithFrame:CGRectMake(130, 0,200, 40)];
        _scPriceImg = [[UIImageView alloc]initWithFrame:CGRectMake(130, 47.5, 15, 15)];
        _scAddressImg = [[UIImageView alloc]initWithFrame:CGRectMake(130, 77.5, 15, 15)];
        _scPriceLab = [[UILabel alloc]initWithFrame:CGRectMake(150, 40, 160, 30)];
        _scAddressLab = [[UILabel alloc]initWithFrame:CGRectMake(150, 70, 160, 30)];
        _scTitleLab.font = [UIFont fontWithName:@"Helvetica" size:16];
        _scPriceLab.font = [UIFont fontWithName:@"Helvetica" size:13];
        _scAddressLab.font = [UIFont fontWithName:@"Helvetica" size:13];
        _scPriceImg.image = [UIImage imageNamed:@"ico_coll_avgprice.png"];
        _scAddressImg.image = [UIImage imageNamed:@"ico_coll_addr.png"];
        _line = [[UIImageView alloc]initWithFrame:CGRectMake(0, 100, SCREEN_WIDTH, 3)];
        _line.backgroundColor = LGCOLOR_gray;
        [self addSubview:_scHeadImg];
        [self addSubview:_scTitleLab];
        [self addSubview:_scPriceImg];
        [self addSubview:_scPriceLab];
        [self addSubview:_scAddressImg];
        [self addSubview:_scAddressLab];
        [self addSubview:_line];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

}

@end
